package com.yunzhou.service;

import io.minio.GetObjectResponse;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface MinioService {
    // 上传文件到minio，并返回该图片的URL
    String uploadFile(MultipartFile file, String bucketName, String fileName) throws Exception;

    // 下载文件
    GetObjectResponse downloadFile(String bucketName, String objectName) throws Exception;
}
